package com.example.resturant.repository;

import com.example.resturant.model.Address;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressRepository extends JpaRepository<Address, Integer>, JpaSpecificationExecutor<Address> {

    List<Address> findByUserIdAndDeleted(Integer userId, Boolean deleted);

    List<Address> findByIdIn(List<Integer> ids);
}
